$OpenBSD: patch-src_rpc_virnetsocket_c,v 1.12 2015/07/14 23:28:59 jasper Exp $

Use sockpeercred on OpenBSD.

--- src/rpc/virnetsocket.c.orig	Thu Jun 25 16:00:33 2015
+++ src/rpc/virnetsocket.c	Fri Jul 10 09:40:58 2015
@@ -1257,7 +1257,11 @@ int virNetSocketGetUNIXIdentity(virNetSocketPtr sock,
                                 pid_t *pid,
                                 unsigned long long *timestamp)
 {
+#if defined (__OpenBSD__)
+    struct sockpeercred cr;
+#else
     struct ucred cr;
+#endif
     socklen_t cr_len = sizeof(cr);
     int ret = -1;
 
